package com.maoguo.user.controller;

import com.maoguo.user.model.User;
import com.maoguo.user.service.UserService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Component
@Path("/user111")
public class UserController {
    @Resource
    private UserService userService;
    @GET
    public  String test(){
        System.out.println("--------------2323---------test");
        userService.updateUser("test");
/*
        User user=new User();
        user.setId(2l);
        userService.saveUser(user);*/
        return "test";
    }
}
